package org.dyndns.ihippo.framework.osgi.spring.dm.helloworld;

import org.dyndns.ihippo.framework.osgi.spring.dm.timeservice.TimeService;

public class HelloWorld {
	
//	private String timeService;
//	
//	public HelloWorld() {
//		System.out.println("This is hello.");
//	}
//	
//	public void start(){
//		System.out.println(timeService);
//	}
//	
//	public void stop(){
//		System.out.println(timeService);
//	}
//	
//
//	public String getTimeService() {
//		return timeService;
//	}
//
//	public void setTimeService(String timeService) {
//		this.timeService = timeService;
//	}
	
	private TimeService timeService;
	
	public void start() {
		System.out.println(timeService.getCurrentTime());
	}

	public void stop() {
		System.out.println(timeService.getCurrentTime());
	}

	public TimeService getTimeService() {
		return timeService;
	}

	public void setTimeService(TimeService timeService) {
		this.timeService = timeService;
	}
}
